Skip to content

Conversation

linhanyu
Copy link
Contributor

#65

fix crash problem when opening vim or tmux. Use microtask to asynchronous scroll event handler.It make rebuild progress wouldn't happened in viewportBuilder so [rebuild in rebuild progress] wouldn't happen.

asynchronize scroll event handler.It make rebuild progress wouldn't
happened in viewportBuilder.
@xtyxtyx xtyxtyx self-assigned this Sep 23, 2021
@xtyxtyx
Copy link
Member

xtyxtyx commented Sep 23, 2021

Thanks for the PR!

This PR do fix the issue however I'm concerned that scheduling callbacks frequently with Future.microtask might have have considerable performance overhead. So I would keep this PR open for now and see if there is a better approach.

@linhanyu
Copy link
Contributor Author

Thanks for the PR!

This PR do fix the issue however I'm concerned that scheduling callbacks frequently with Future.microtask might have have considerable performance overhead. So I would keep this PR open for now and see if there is a better approach.

Well, that's true.would make widget tree rebuild twice because non-essential refresh

But I think crash is more unbearable then some performance overhead

luxi78 added a commit to luxi78/xterm.dart that referenced this pull request Mar 6, 2022
@jooy2
Copy link

jooy2 commented Jun 26, 2022

Hello. Could this PR be reconsidered? Almost 100% crashes when using xterm.dart when using application modes like vim or tmux.
Thanks.

@linhanyu
Copy link
Contributor Author

linhanyu commented Jun 26, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants